import request from "../utils/request";
//根据奖项ID查询该奖项的信息
export function SelectAwardById(id) {
    return request({
        url: '/award/SelectAwardById',
        method: 'get',
        params: { id }
    })
}

//根据奖项ID查询一个奖项类型的奖项信息
export function selectOneAwardById(id) {
    return request({
        url: '/award/SelectOneAwardById',
        method: 'get',
        params: { id }
    })
}
//新增奖项
export function addAward(award) {
    return request({
        url: '/award/AddAward',
        method: 'post',
        data: award,
    })
}
//判断奖项名称是否已存在
export function ifAwardTitle(award) {
    return request({
        url: '/award/IfAwardTitle',
        method: 'post',
        data: award,
    })
}
//更新奖项
export function updateAward(award) {
    return request({
        url: '/award/UpdateAward',
        method: 'post',
        data: award,
    })
}
//查询奖项id列表
export function getAwardOptions() {
    return request({
        url: '/award/getAwardOptions',
        method: 'get',
    })
}
//删除奖项通过奖项Id
export function deleteAwardByAwardId(awardId) {
    return request({
        url: '/award/DeleteAwardByAwardId',
        method: 'delete',
        params: { awardId }
    })
}
